<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class InitUpdate76 extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('yfs_rooms', function (Blueprint $table) {

            $table->integer('free_order_sales')->default(0)->comment('已出免单次数');

        });

        Schema::table('package_skus', function (Blueprint $table) {

            $table->integer('sku_id')->nullable()->index()->comment('基础sku的id');

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('yfs_rooms', function (Blueprint $table) {
            $table->dropColumn(['free_order_sales']);
        });
    }
}
